home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 34.9 KB | 1,258 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLTxtRun.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- /*
- *
- *
- * File: SLTxtRun.idl
- *
- * Contains: Interface for OTextRunReader and OTextRunWriter classes
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- *
- */
-
-
- #ifndef SOM_FW_OTextRunReader_xih
- #define SOM_FW_OTextRunReader_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
-
-
- #ifndef SOM_FW_OTextRunReader_xh
- #include <SLTxtRun.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OTextRunReader_MaxNoMethods 4
-
- /*
- * -- Instance Data
- */
- typedef void FW_OTextRunReaderData;
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OTextRunReaderMethodDebug
- #define FW_OTextRunReaderMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _GetCurrentRun somSelf->GetCurrentRun
- #define _NextRun somSelf->NextRun
- #define _PreviousRun somSelf->PreviousRun
- #define _GetTotalLength somSelf->GetTotalLength
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: GetCurrentRun */
- SOM_Scope corbastring SOMLINK FW_OTextRunReader__GetCurrentRun(FW_OTextRunReader *somSelf, Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale);
-
- /* New Method: NextRun */
- SOM_Scope boolean SOMLINK FW_OTextRunReader__NextRun(FW_OTextRunReader *somSelf, Environment *ev);
-
- /* New Method: PreviousRun */
- SOM_Scope boolean SOMLINK FW_OTextRunReader__PreviousRun(FW_OTextRunReader *somSelf, Environment *ev);
-
- /* New Method: GetTotalLength */
- SOM_Scope FW_ByteCount SOMLINK FW_OTextRunReader__GetTotalLength(FW_OTextRunReader *somSelf, Environment *ev);
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OTextRunReader_Class_Source) || defined(SOM_Module_sltxtrun_Source))
-
- /*
- * -- The FW_OTextRunReader ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OTextRunReaderClassData
- #endif
-
-
- /*
- * -- The FW_OTextRunReader Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OTextRunReaderClassAncestors [] = {
- (somClassDataStructure*) & SOMObjectClassData, /* parent */
- };
-
-
- static void FW_OTextRunReaderDLLD ( void ) { }
-
-
- /*
- * -- The FW_OTextRunReader Static Class Info Master Table
- */
- static somStaticClassInfo FW_OTextRunReaderSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OTextRunReaderClassData, /* main token table */
- 0, /* no override procs table */
- FW_OTextRunReaderClassAncestors, /* ancestor table */
- FW_OTextRunReaderDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OTextRunReader Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x00" /* type code alignment */
- "\x00\x04" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x00" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OTextRunReader", /* the class name */
- 0, /* no class instance data */
-
- /*
- * -- The FW_OTextRunReader Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x46" /* majorversion */
- "\x00\x00\x00\x01" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OTextRunReader Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x00",
-
-
- /*
- * -- The FW_OTextRunReader Method Signature Info
- */
- (somSignatureInfo *)
- "\x04\x0c" /* GetCurrentRun */
- "\x02\x00" /* NextRun */
- "\x02\x00" /* PreviousRun */
- "\x02\x05" /* GetTotalLength */
- ,
-
-
- /*
- * -- The FW_OTextRunReader Class Method Names
- */
- "GetCurrentRun\0"
- "NextRun\0"
- "PreviousRun\0"
- "GetTotalLength\0"
- ,
-
- 0, /* no override data table */
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OTextRunReader ClassData Structure
- */
- struct FW_OTextRunReaderClassDataStructure SOMDLINK FW_OTextRunReaderClassData = {
- 0, /* zero */
- & FW_OTextRunReaderSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) FW_OTextRunReader__GetCurrentRun, /* GetCurrentRun:method */
- (somMToken) FW_OTextRunReader__NextRun, /* NextRun:method */
- (somMToken) FW_OTextRunReader__PreviousRun, /* PreviousRun:method */
- (somMToken) FW_OTextRunReader__GetTotalLength, /* GetTotalLength:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OTextRunReader_xih */
-
- #ifndef SOM_FW_OTextRunWriter_xih
- #define SOM_FW_OTextRunWriter_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
-
-
- #ifndef SOM_FW_OTextRunWriter_xh
- #include <SLTxtRun.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OTextRunWriter_MaxNoMethods 3
-
- /*
- * -- Instance Data
- */
- typedef void FW_OTextRunWriterData;
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OTextRunWriterMethodDebug
- #define FW_OTextRunWriterMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _GetCurrentRun somSelf->GetCurrentRun
- #define _FlushRun somSelf->FlushRun
- #define _NewRun somSelf->NewRun
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: GetCurrentRun */
- SOM_Scope corbastring SOMLINK FW_OTextRunWriter__GetCurrentRun(FW_OTextRunWriter *somSelf, Environment *ev,
- FW_ByteCount* length);
-
- /* New Method: FlushRun */
- SOM_Scope void SOMLINK FW_OTextRunWriter__FlushRun(FW_OTextRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush);
-
- /* New Method: NewRun */
- SOM_Scope boolean SOMLINK FW_OTextRunWriter__NewRun(FW_OTextRunWriter *somSelf, Environment *ev,
- FW_Locale* locale);
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OTextRunWriter_Class_Source) || defined(SOM_Module_sltxtrun_Source))
-
- /*
- * -- The FW_OTextRunWriter ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OTextRunWriterClassData
- #endif
-
-
- /*
- * -- The FW_OTextRunWriter Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OTextRunWriterClassAncestors [] = {
- (somClassDataStructure*) & SOMObjectClassData, /* parent */
- };
-
-
- static void FW_OTextRunWriterDLLD ( void ) { }
-
-
- /*
- * -- The FW_OTextRunWriter Static Class Info Master Table
- */
- static somStaticClassInfo FW_OTextRunWriterSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OTextRunWriterClassData, /* main token table */
- 0, /* no override procs table */
- FW_OTextRunWriterClassAncestors, /* ancestor table */
- FW_OTextRunWriterDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OTextRunWriter Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x00" /* type code alignment */
- "\x00\x03" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x00" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OTextRunWriter", /* the class name */
- 0, /* no class instance data */
-
- /*
- * -- The FW_OTextRunWriter Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x46" /* majorversion */
- "\x00\x00\x00\x01" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OTextRunWriter Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x00",
-
-
- /*
- * -- The FW_OTextRunWriter Method Signature Info
- */
- (somSignatureInfo *)
- "\x03\x0c" /* GetCurrentRun */
- "\x04\x07" /* FlushRun */
- "\x03\x00" /* NewRun */
- ,
-
-
- /*
- * -- The FW_OTextRunWriter Class Method Names
- */
- "GetCurrentRun\0"
- "FlushRun\0"
- "NewRun\0"
- ,
-
- 0, /* no override data table */
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OTextRunWriter ClassData Structure
- */
- struct FW_OTextRunWriterClassDataStructure SOMDLINK FW_OTextRunWriterClassData = {
- 0, /* zero */
- & FW_OTextRunWriterSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) FW_OTextRunWriter__GetCurrentRun, /* GetCurrentRun:method */
- (somMToken) FW_OTextRunWriter__FlushRun, /* FlushRun:method */
- (somMToken) FW_OTextRunWriter__NewRun, /* NewRun:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OTextRunWriter_xih */
-
- #ifndef SOM_FW_OMemoryRunReader_xih
- #define SOM_FW_OMemoryRunReader_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
-
-
- #ifndef SOM_FW_OMemoryRunReader_xh
- #include <SLTxtRun.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OMemoryRunReader_MaxNoMethods 1
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
- typedef struct FW_OMemoryRunReaderData {
- char* fBuffer;
- FW_ByteCount fLength;
- } FW_OMemoryRunReaderData;
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- /*
- * -- Getdata Macro
- */
-
- /*
- * -- This emitter treats Data Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to override this default.
- */
- SOMEXTERN typedef FW_OMemoryRunReaderData* (* SOMLINK somTD_FW_OMemoryRunReader_DataThunk)(void*);
- #define FW_OMemoryRunReaderGetData(somSelf) \
- (((somTD_FW_OMemoryRunReader_DataThunk)(FW_OMemoryRunReaderClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fBuffer (somThis->fBuffer)
- #define _fLength (somThis->fLength)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OMemoryRunReaderMethodDebug
- #define FW_OMemoryRunReaderMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _GetCurrentRun somSelf->GetCurrentRun
- #define _NextRun somSelf->NextRun
- #define _PreviousRun somSelf->PreviousRun
- #define _GetTotalLength somSelf->GetTotalLength
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _Initialize somSelf->Initialize
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _GetCurrentRun somSelf->GetCurrentRun
- #define _NextRun somSelf->NextRun
- #define _PreviousRun somSelf->PreviousRun
- #define _GetTotalLength somSelf->GetTotalLength
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: Initialize */
- SOM_Scope FW_OMemoryRunReader* SOMLINK FW_OMemoryRunReader__Initialize(FW_OMemoryRunReader *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount length);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK FW_OMemoryRunReader__somInit(FW_OMemoryRunReader *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OMemoryRunReader_somInit)(FW_OMemoryRunReader *somSelf);
- inline void SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_somInit(FW_OMemoryRunReader *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OMemoryRunReader_parents_somInit(arg0) \
- (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK FW_OMemoryRunReader__somUninit(FW_OMemoryRunReader *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OMemoryRunReader_somUninit)(FW_OMemoryRunReader *somSelf);
- inline void SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_somUninit(FW_OMemoryRunReader *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OMemoryRunReader_parents_somUninit(arg0) \
- (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_somUninit(arg0)
-
- /* Overridden method: GetCurrentRun */
- SOM_Scope corbastring SOMLINK FW_OMemoryRunReader__GetCurrentRun(FW_OMemoryRunReader *somSelf, Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale);
- SOMEXTERN typedef corbastring (* SOMLINK somTD_xih_FW_OMemoryRunReader_GetCurrentRun)(FW_OMemoryRunReader *somSelf, Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale);
- inline corbastring SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_GetCurrentRun(FW_OMemoryRunReader *somSelf, Environment *ev,
- FW_ByteCount* length,
- FW_Locale* locale)
- {
- #ifdef SOMCHKEXCEPT
- corbastring __somRetVal = ((somTD_xih_FW_OMemoryRunReader_GetCurrentRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetCurrentRun))
- (somSelf,ev,length,locale);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OMemoryRunReader_GetCurrentRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetCurrentRun))
- (somSelf,ev,length,locale);
- #endif
- }
- #define FW_OMemoryRunReader_parents_GetCurrentRun(arg0,arg1,arg2,arg3) \
- (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_GetCurrentRun(arg0,arg1,arg2,arg3)
-
- /* Overridden method: NextRun */
- SOM_Scope boolean SOMLINK FW_OMemoryRunReader__NextRun(FW_OMemoryRunReader *somSelf, Environment *ev);
- SOMEXTERN typedef boolean (* SOMLINK somTD_xih_FW_OMemoryRunReader_NextRun)(FW_OMemoryRunReader *somSelf, Environment *ev);
- inline boolean SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_NextRun(FW_OMemoryRunReader *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- boolean __somRetVal = ((somTD_xih_FW_OMemoryRunReader_NextRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.NextRun))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OMemoryRunReader_NextRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.NextRun))
- (somSelf,ev);
- #endif
- }
- #define FW_OMemoryRunReader_parents_NextRun(arg0,arg1) \
- (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_NextRun(arg0,arg1)
-
- /* Overridden method: PreviousRun */
- SOM_Scope boolean SOMLINK FW_OMemoryRunReader__PreviousRun(FW_OMemoryRunReader *somSelf, Environment *ev);
- SOMEXTERN typedef boolean (* SOMLINK somTD_xih_FW_OMemoryRunReader_PreviousRun)(FW_OMemoryRunReader *somSelf, Environment *ev);
- inline boolean SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_PreviousRun(FW_OMemoryRunReader *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- boolean __somRetVal = ((somTD_xih_FW_OMemoryRunReader_PreviousRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.PreviousRun))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OMemoryRunReader_PreviousRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.PreviousRun))
- (somSelf,ev);
- #endif
- }
- #define FW_OMemoryRunReader_parents_PreviousRun(arg0,arg1) \
- (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_PreviousRun(arg0,arg1)
-
- /* Overridden method: GetTotalLength */
- SOM_Scope FW_ByteCount SOMLINK FW_OMemoryRunReader__GetTotalLength(FW_OMemoryRunReader *somSelf, Environment *ev);
- SOMEXTERN typedef FW_ByteCount (* SOMLINK somTD_xih_FW_OMemoryRunReader_GetTotalLength)(FW_OMemoryRunReader *somSelf, Environment *ev);
- inline FW_ByteCount SOMLINK FW_OMemoryRunReader_parent_FW_OTextRunReader_GetTotalLength(FW_OMemoryRunReader *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- FW_ByteCount __somRetVal = ((somTD_xih_FW_OMemoryRunReader_GetTotalLength)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetTotalLength))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OMemoryRunReader_GetTotalLength)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunReaderClassData, 1, FW_OTextRunReaderClassData.GetTotalLength))
- (somSelf,ev);
- #endif
- }
- #define FW_OMemoryRunReader_parents_GetTotalLength(arg0,arg1) \
- (void) FW_OMemoryRunReader_parent_FW_OTextRunReader_GetTotalLength(arg0,arg1)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OMemoryRunReader_Class_Source) || defined(SOM_Module_sltxtrun_Source))
-
- /*
- * -- The FW_OMemoryRunReader ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OMemoryRunReaderClassData
- #endif
-
-
- /*
- * -- The FW_OMemoryRunReader Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OMemoryRunReaderClassAncestors [] = {
- (somClassDataStructure*) & FW_OTextRunReaderClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- };
-
-
- /*
- * -- The FW_OMemoryRunReader Override ProcPtr Implementations Table
- */
- static somMethodPtr FW_OMemoryRunReaderOverrideProcs [] = {
- (somMethodPtr) FW_OMemoryRunReader__GetCurrentRun, /* override class FW_OTextRunReader */
- (somMethodPtr) FW_OMemoryRunReader__NextRun, /* override class FW_OTextRunReader */
- (somMethodPtr) FW_OMemoryRunReader__PreviousRun, /* override class FW_OTextRunReader */
- (somMethodPtr) FW_OMemoryRunReader__GetTotalLength, /* override class FW_OTextRunReader */
- (somMethodPtr) FW_OMemoryRunReader__somInit, /* override class SOMObject */
- (somMethodPtr) FW_OMemoryRunReader__somUninit, /* override class SOMObject */
- };
-
-
- static void FW_OMemoryRunReaderDLLD ( void ) { }
-
-
- /*
- * -- The FW_OMemoryRunReader Static Class Info Master Table
- */
- static somStaticClassInfo FW_OMemoryRunReaderSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OMemoryRunReaderClassData, /* main token table */
- FW_OMemoryRunReaderOverrideProcs, /* override proc implemenations table */
- FW_OMemoryRunReaderClassAncestors, /* ancestor table */
- FW_OMemoryRunReaderDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OMemoryRunReader Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x07" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x02" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OMemoryRunReader", /* the class name */
- sizeof (FW_OMemoryRunReaderData), /* class instance data size */
-
- /*
- * -- The FW_OMemoryRunReader Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OMemoryRunReader Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x33\x33\x33",
-
-
- /*
- * -- The FW_OMemoryRunReader Method Signature Info
- */
- (somSignatureInfo *)
- "\x04\x0c" /* Initialize */
- ,
-
-
- /*
- * -- The FW_OMemoryRunReader Class Method Names
- */
- "somInit\0"
- "somUninit\0"
- "GetCurrentRun\0"
- "NextRun\0"
- "PreviousRun\0"
- "GetTotalLength\0"
- "Initialize\0"
- ,
-
-
- /*
- * -- The FW_OMemoryRunReader Override Slots Table
- */
- (somOverrideData *)
- "\x00\x00\x00\x04" /* parent FW_OTextRunReader has 4 overrides */
- "\x00\x00" /* GetCurrentRun */
- "\x00\x01" /* NextRun */
- "\x00\x02" /* PreviousRun */
- "\x00\x03" /* GetTotalLength */
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OMemoryRunReader ClassData Structure
- */
- struct FW_OMemoryRunReaderClassDataStructure SOMDLINK FW_OMemoryRunReaderClassData = {
- 0, /* zero */
- & FW_OMemoryRunReaderSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) 0, /* somInit:empty */
- (somMToken) 0, /* somUninit:empty */
- (somMToken) 0, /* GetCurrentRun:empty */
- (somMToken) 0, /* NextRun:empty */
- (somMToken) 0, /* PreviousRun:empty */
- (somMToken) 0, /* GetTotalLength:empty */
- (somMToken) FW_OMemoryRunReader__Initialize, /* Initialize:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OMemoryRunReader_xih */
-
- #ifndef SOM_FW_OMemoryRunWriter_xih
- #define SOM_FW_OMemoryRunWriter_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
-
-
- #ifndef SOM_FW_OMemoryRunWriter_xh
- #include <SLTxtRun.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OMemoryRunWriter_MaxNoMethods 1
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
- typedef struct FW_OMemoryRunWriterData {
- char* fBuffer;
- FW_ByteCount fCapacity;
- } FW_OMemoryRunWriterData;
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- /*
- * -- Getdata Macro
- */
-
- /*
- * -- This emitter treats Data Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to override this default.
- */
- SOMEXTERN typedef FW_OMemoryRunWriterData* (* SOMLINK somTD_FW_OMemoryRunWriter_DataThunk)(void*);
- #define FW_OMemoryRunWriterGetData(somSelf) \
- (((somTD_FW_OMemoryRunWriter_DataThunk)(FW_OMemoryRunWriterClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fBuffer (somThis->fBuffer)
- #define _fCapacity (somThis->fCapacity)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OMemoryRunWriterMethodDebug
- #define FW_OMemoryRunWriterMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _GetCurrentRun somSelf->GetCurrentRun
- #define _FlushRun somSelf->FlushRun
- #define _NewRun somSelf->NewRun
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _Initialize somSelf->Initialize
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _GetCurrentRun somSelf->GetCurrentRun
- #define _FlushRun somSelf->FlushRun
- #define _NewRun somSelf->NewRun
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: Initialize */
- SOM_Scope FW_OMemoryRunWriter* SOMLINK FW_OMemoryRunWriter__Initialize(FW_OMemoryRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount capacity);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK FW_OMemoryRunWriter__somInit(FW_OMemoryRunWriter *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OMemoryRunWriter_somInit)(FW_OMemoryRunWriter *somSelf);
- inline void SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somInit(FW_OMemoryRunWriter *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OMemoryRunWriter_parents_somInit(arg0) \
- (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK FW_OMemoryRunWriter__somUninit(FW_OMemoryRunWriter *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OMemoryRunWriter_somUninit)(FW_OMemoryRunWriter *somSelf);
- inline void SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somUninit(FW_OMemoryRunWriter *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OMemoryRunWriter_parents_somUninit(arg0) \
- (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_somUninit(arg0)
-
- /* Overridden method: GetCurrentRun */
- SOM_Scope corbastring SOMLINK FW_OMemoryRunWriter__GetCurrentRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_ByteCount* length);
- SOMEXTERN typedef corbastring (* SOMLINK somTD_xih_FW_OMemoryRunWriter_GetCurrentRun)(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_ByteCount* length);
- inline corbastring SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_GetCurrentRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_ByteCount* length)
- {
- #ifdef SOMCHKEXCEPT
- corbastring __somRetVal = ((somTD_xih_FW_OMemoryRunWriter_GetCurrentRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.GetCurrentRun))
- (somSelf,ev,length);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OMemoryRunWriter_GetCurrentRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.GetCurrentRun))
- (somSelf,ev,length);
- #endif
- }
- #define FW_OMemoryRunWriter_parents_GetCurrentRun(arg0,arg1,arg2) \
- (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_GetCurrentRun(arg0,arg1,arg2)
-
- /* Overridden method: FlushRun */
- SOM_Scope void SOMLINK FW_OMemoryRunWriter__FlushRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OMemoryRunWriter_FlushRun)(FW_OMemoryRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush);
- inline void SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_FlushRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- corbastring buffer,
- FW_ByteCount bytesToFlush)
- {
- ((somTD_xih_FW_OMemoryRunWriter_FlushRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.FlushRun))
- (somSelf,ev,buffer,bytesToFlush);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
- #define FW_OMemoryRunWriter_parents_FlushRun(arg0,arg1,arg2,arg3) \
- (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_FlushRun(arg0,arg1,arg2,arg3)
-
- /* Overridden method: NewRun */
- SOM_Scope boolean SOMLINK FW_OMemoryRunWriter__NewRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_Locale* locale);
- SOMEXTERN typedef boolean (* SOMLINK somTD_xih_FW_OMemoryRunWriter_NewRun)(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_Locale* locale);
- inline boolean SOMLINK FW_OMemoryRunWriter_parent_FW_OTextRunWriter_NewRun(FW_OMemoryRunWriter *somSelf, Environment *ev,
- FW_Locale* locale)
- {
- #ifdef SOMCHKEXCEPT
- boolean __somRetVal = ((somTD_xih_FW_OMemoryRunWriter_NewRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.NewRun))
- (somSelf,ev,locale);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_OMemoryRunWriter_NewRun)
- somParentNumResolve((somClassDataStructure*)&FW_OMemoryRunWriterClassData, 1, FW_OTextRunWriterClassData.NewRun))
- (somSelf,ev,locale);
- #endif
- }
- #define FW_OMemoryRunWriter_parents_NewRun(arg0,arg1,arg2) \
- (void) FW_OMemoryRunWriter_parent_FW_OTextRunWriter_NewRun(arg0,arg1,arg2)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OMemoryRunWriter_Class_Source) || defined(SOM_Module_sltxtrun_Source))
-
- /*
- * -- The FW_OMemoryRunWriter ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OMemoryRunWriterClassData
- #endif
-
-
- /*
- * -- The FW_OMemoryRunWriter Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OMemoryRunWriterClassAncestors [] = {
- (somClassDataStructure*) & FW_OTextRunWriterClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- };
-
-
- /*
- * -- The FW_OMemoryRunWriter Override ProcPtr Implementations Table
- */
- static somMethodPtr FW_OMemoryRunWriterOverrideProcs [] = {
- (somMethodPtr) FW_OMemoryRunWriter__GetCurrentRun, /* override class FW_OTextRunWriter */
- (somMethodPtr) FW_OMemoryRunWriter__FlushRun, /* override class FW_OTextRunWriter */
- (somMethodPtr) FW_OMemoryRunWriter__NewRun, /* override class FW_OTextRunWriter */
- (somMethodPtr) FW_OMemoryRunWriter__somInit, /* override class SOMObject */
- (somMethodPtr) FW_OMemoryRunWriter__somUninit, /* override class SOMObject */
- };
-
-
- static void FW_OMemoryRunWriterDLLD ( void ) { }
-
-
- /*
- * -- The FW_OMemoryRunWriter Static Class Info Master Table
- */
- static somStaticClassInfo FW_OMemoryRunWriterSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OMemoryRunWriterClassData, /* main token table */
- FW_OMemoryRunWriterOverrideProcs, /* override proc implemenations table */
- FW_OMemoryRunWriterClassAncestors, /* ancestor table */
- FW_OMemoryRunWriterDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OMemoryRunWriter Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x06" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x02" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OMemoryRunWriter", /* the class name */
- sizeof (FW_OMemoryRunWriterData), /* class instance data size */
-
- /*
- * -- The FW_OMemoryRunWriter Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OMemoryRunWriter Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x33\x33\x30",
-
-
- /*
- * -- The FW_OMemoryRunWriter Method Signature Info
- */
- (somSignatureInfo *)
- "\x04\x0c" /* Initialize */
- ,
-
-
- /*
- * -- The FW_OMemoryRunWriter Class Method Names
- */
- "somInit\0"
- "somUninit\0"
- "GetCurrentRun\0"
- "FlushRun\0"
- "NewRun\0"
- "Initialize\0"
- ,
-
-
- /*
- * -- The FW_OMemoryRunWriter Override Slots Table
- */
- (somOverrideData *)
- "\x00\x00\x00\x03" /* parent FW_OTextRunWriter has 3 overrides */
- "\x00\x00" /* GetCurrentRun */
- "\x00\x01" /* FlushRun */
- "\x00\x02" /* NewRun */
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OMemoryRunWriter ClassData Structure
- */
- struct FW_OMemoryRunWriterClassDataStructure SOMDLINK FW_OMemoryRunWriterClassData = {
- 0, /* zero */
- & FW_OMemoryRunWriterSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) 0, /* somInit:empty */
- (somMToken) 0, /* somUninit:empty */
- (somMToken) 0, /* GetCurrentRun:empty */
- (somMToken) 0, /* FlushRun:empty */
- (somMToken) 0, /* NewRun:empty */
- (somMToken) FW_OMemoryRunWriter__Initialize, /* Initialize:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OMemoryRunWriter_xih */
-